package com.itheima.countDownLatch;

import java.util.concurrent.CountDownLatch;

public class CountDownLatchDemo {
    public static void main(String[] args) {
        CountDownLatch countDownLatch = new CountDownLatch(3);
        new Thread(new MotherThread(countDownLatch)).start();
        new Thread(new ChileThread1(countDownLatch),"小明").start();
        new Thread(new ChileThread2(countDownLatch),"小红").start();
        new Thread(new ChileThread3(countDownLatch),"小刚").start();
    }
}
